<!-- 头部组件 -->
<template>
  <div class="header">
    <div class="back" @click='goBack'>返回</div>
    <div class="title">{{title}}</div>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data () {
    return {
    };
  },

  components: {},

  computed: {},

  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
}

</script>
<style lang='scss' scoped>
.header{
  height: 45Px;
  line-height: 45Px;
  border-bottom: $border;
  position: relative;
  .back{
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 600;
  }
  .title{
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: center;
  }
}
</style>